%give each transition between copy numbers a unique code ex 1->3 = 3, 3->5 = 19
%ex if max copy num = 6 (3-1*6+1 + 5 = 2*7 + 5 = 19)
function [ tcode ] = getTransitionCode(initcopynum, nextcopynum)
    maxcopynum = 1000;
    if initcopynum == nextcopynum
        tcode = 0;
    else
        tcode = (initcopynum)*(maxcopynum) + nextcopynum;
    end
end
